#include <iostream>
#include <cstring>
using namespace std;


int main(){
	string l;
	string a;
	char b;
	cin>>b;
	a = b+":";
	while(1){
		cin>>l;
		if(l == "\\end") break;
	cout<<"out file: "<<a;
		a += "\\"+l;
	}
//	cin>>l;
//	freopen(a.data(),"w",stdout);
	cout<<"out file: "<<a;
	return 0;
}
